﻿<UserControl x:Class="DienLib.ReportLib.PopUpShipTo"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="146" d:DesignWidth="271" BorderBrush="#FFF14A4A" BorderThickness="6" Loaded="UserControl_Loaded" xmlns:my="clr-namespace:DienLib.PopUp">
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="260" Height="136" Background="#FFF5F5C3">
        <TextBlock FontWeight="Bold" Height="29" HorizontalAlignment="Left" Margin="10,10,0,0" Name="textBlock1" Text="Summit Package need Info about &quot;Ship To Number&quot; which cannot be found in Farpac !" TextAlignment="Justify" TextWrapping="Wrap" VerticalAlignment="Top" Width="240"><TextBlock.TextEffects><TextEffect Foreground="#FFDE2222" PositionCount="16" PositionStart="31" /></TextBlock.TextEffects></TextBlock>
        <TextBlock FontStyle="Italic" FontWeight="Normal" Height="19" HorizontalAlignment="Left" Margin="12,61,0,0" Name="textBlock2" Padding="0" Text="Please type in &quot;Ship To&quot; for Well : " TextAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Width="226"><TextBlock.TextEffects><TextEffect Foreground="Red" PositionCount="10" PositionStart="35" /></TextBlock.TextEffects></TextBlock>
        <Button Content="OK" FlowDirection="LeftToRight" FontSize="20" FontWeight="Bold" Height="35" HorizontalAlignment="Left" Margin="156,86,0,0" Name="button1" VerticalAlignment="Top" Width="94" Click="button1_Click" BorderThickness="0" MouseEnter="button1_MouseEnter" MouseLeave="button1_MouseLeave">
            <Button.Foreground>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFAF0000" Offset="1" />
                </LinearGradientBrush>
            </Button.Foreground>
        </Button>
        <my:ComboBoxD Height="35" HorizontalAlignment="Left" ItemsSource="{Binding}"  Margin="12,86,0,0" x:Name="comboBoxD1" VerticalAlignment="Top" Width="130" FontSize="14" Text="" FontWeight="Bold" IsEditable="True" DisplaySelectionPath ="Ship2Number"  TextSearch.TextPath="WellName" IsTextSearchEnabled="True">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock DataContext="{Binding}">
                            <TextBlock.Text>
                                <MultiBinding StringFormat="{}{0} : {1}">
                                    <Binding Path="Ship2Number" />
                                    <Binding Path="WellName" />
                                </MultiBinding>
                            </TextBlock.Text></TextBlock>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </my:ComboBoxD>
    </Grid>
</UserControl>
